package com.haiyou.dc.netty.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.persistence.*;
import java.io.Serializable;

import java.util.Date;

/**
 * 朋友申请表
 *
 * @author Administrator
 * @date 2020-03-04 16:05:16
 */
@ApiModel(value = "朋友申请表")
@Data
@Accessors(chain = true)
@Table(name = "im_friend_apply")
public class ImFriendApply implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 自动编号
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @ApiModelProperty(value = "自动编号", name = "id")
    private Integer id;

    /**
     * 发送者id
     */
    @Column(name = "sender")
    @ApiModelProperty(value = "发送者id", name = "sender")
    private String sender;

    /**
     * 接收者
     */
    @Column(name = "receiver")
    @ApiModelProperty(value = "接收者", name = "receiver")
    private String receiver;

    /**
     * 申请理由
     */
    @Column(name = "apply_reason")
    @ApiModelProperty(value = "申请理由", name = "applyReason")
    private String applyReason;

    /**
     * 申请时间
     */
    @Column(name = "apply_time")
    @ApiModelProperty(value = "申请时间", name = "applyTime")
    private Date applyTime;

}
